*{
    margin: 0px;
    padding: 0px;
}
html{
    perspective: 800px;
}
.pic{
    position: relative;
    width: 200px;
    height: 200px;
   /*  border: 1px solid rgb(166, 166, 243); */
    margin: 100px auto;
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateY(45deg);
    animation: move 15s infinite linear;
    div{
        position: absolute;
        img{
            width: 200px;
            height: 200px;
            vertical-align: bottom;
            opacity: 0.9;
        }
    }
    
}
.pic>div:nth-child(1){
    transform: rotateY(90deg) translateZ(100px);
}
.pic>div:nth-child(2){
    transform: rotateY(-90deg) translateZ(100px);
}
.pic>div:nth-child(3){
    transform: rotateX(90deg) translateZ(100px);
}
.pic>div:nth-child(4){
    transform: rotateX(-90deg) translateZ(100px);
}
.pic>div:nth-child(5){
    transform: rotatey(180deg) translateZ(100px);
}
.pic>div:nth-child(6){
    transform: translateZ(100px);
}
.pic:hover{
    animation-play-state: paused;
}
@keyframes move{
    from{
        transform: rotateX(0deg) rotateY(0deg);
    }
    to{
        transform: rotateX(360deg) rotateY(360deg);
    }
}